extends basic
block header
    style.
        body {padding-top: 100px;padding-bottom: 40px;background-color: #eee;}
block content
    div(class="container-fluid")
        div(class="row")
            div(class="col-sm-6")
                img(class="col-sm-12",src="/cover.png")
            div(class="col-sm-6")
                form(class="form-signin" novalidate ng-controller="SignUpCtrl" name="SignupForm")
                    fieldset(ng-disabled="processing")
                        h2(class="form-signin-heading") 注册PowerTeam
                        input(type="email" name="Email" ng-model="User.Email" class="form-control" placeholder="您的电子邮件" required autofocus)
                        div(ng-show="SignupForm.Email.$dirty&&SignupForm.Email.$error.required" class="text-danger") 请输入电子邮件
                        div(ng-show="SignupForm.Email.$dirty&&SignupForm.Email.$error.email" class="text-danger") 电子邮件格式不正确
                        input(type="text" name="Nick" ng-model="User.Nick" class="form-control" placeholder="设置一个昵称" required)
                        div(ng-show="SignupForm.Nick.$dirty&&SignupForm.Nick.$error.required" class="text-danger") 请设置一个昵称
                        input(type="password" name="Password" ng-model="User.Password" class="form-control" placeholder="设置一个密码" required)
                        div(ng-show="SignupForm.Password.$dirty&&SignupForm.Password.$error.required" class="text-danger") 请设置一个密码
                        button(class="btn btn-lg btn-primary btn-block" id="btnSignup" type="button" ng-click="signUp()",data-loading-text="正在创建",ng-disabled="SignupForm.$invalid") 注册
                        div(class="alert alert-danger" ng-show="!created") 该电子邮件已经被注册了，请选择其他电子邮件注册!